package com.wcy.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wcy.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wcy.entity.userVo.AuthorProfile;
import com.wcy.entity.userVo.PasswordObject;
import com.wcy.util.vo.AuthRequest;
import com.wcy.util.vo.AuthResponse;
import org.springframework.http.ResponseEntity;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 吴传亿
 * @since 2025-04-28
 */
public interface IUserService extends IService<User> {
    Page<User> page(Page<User> page, Wrapper<User> wrapper);
    AuthResponse login(AuthRequest request);
    Boolean register(User user);
    Boolean validate(String token);
    boolean updateById(User user);
    public AuthorProfile getAuthorProfile( List<Integer> resourceIds);
    boolean updatePassword(PasswordObject passwordObject,  Integer id);
}
